home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 10 / FreelogHS10.iso / Apprendre / Trainers / id86.swf / scripts / DefineButton2_75 / BUTTONCONDACTION on(keyPress %2E).as
Text File  |  2002-02-16  |  730b  |  38 lines

  1. on(keyPress "."){
  2.    if(IncorrectDisplay == false)
  3.    {
  4.       if(Instrument == 2)
  5.       {
  6.          Valve1 = false;
  7.          Valve2 = false;
  8.          Valve3 = false;
  9.          Valve4 = false;
  10.          if(Key.isDown(37))
  11.          {
  12.             Valve3 = true;
  13.          }
  14.          if(Key.isDown(40))
  15.          {
  16.             Valve2 = true;
  17.          }
  18.          if(Key.isDown(39))
  19.          {
  20.             Valve1 = true;
  21.          }
  22.          if(Key.isDown(67))
  23.          {
  24.             Valve1 = true;
  25.          }
  26.          if(Key.isDown(88))
  27.          {
  28.             Valve2 = true;
  29.          }
  30.          if(Key.isDown(90))
  31.          {
  32.             Valve3 = true;
  33.          }
  34.          gotoAndStop(20);
  35.       }
  36.    }
  37. }
  38.